package com.xy.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 门禁记录
 *
 * @author guojian
 */
@ApiModel(value = "门禁记录")
@Data
public class GeneralRecordRequest implements Serializable {
	/**
	 * 刷卡凭证
	 */
	@NotNull(message = "刷卡凭证")
	@ApiModelProperty(value = "刷卡凭证")
	private String recordViewer;
	/**
	 * 闸机名称
	 */
	@ApiModelProperty(value = "闸机名称，原字段：deviceName")
	private String gateName;
	/**
	 * 闸机编号
	 */
	@ApiModelProperty(value = "闸机编号，原字段：deviceNo")
	private String gateRef;
	/**
	 * 门禁名称
	 */
	@ApiModelProperty(value = "门禁名称，原字段：pointName")
	private String positionName;
	/**
	 * 过闸方式1正常2离线
	 */
	@ApiModelProperty(value = "过闸方式1正常2离线，原字段：recordType")
	private Integer generalType;
	/**
	 * 通行时间
	 */
	@ApiModelProperty(value = "通行时间，原字段：recordTime")
	private Date passTime;
	/**
	 * 通行照片
	 */
	@ApiModelProperty(value = "通行照片，原字段：recordPhoto")
	private String passPhoto;
	/**
	 * 门禁点ID
	 */
	@ApiModelProperty(value = "门禁点ID，原字段：pointId")
	private Long positionId;
	/**
	 * 门禁组ID
	 */
	@ApiModelProperty(value = "门禁组ID，原字段：pointGroupId")
	private Long positionGroupId;
	/**
	 * 门禁组名称
	 */
	@ApiModelProperty(value = "门禁组名称，原字段：groupName")
	private String groupName;
	/**
	 * 场馆名称
	 */
	@ApiModelProperty(value = "场馆名称，原字段：venueName")
	private String venueName;
	/**
	 * 场馆ID
	 */
	@ApiModelProperty(value = "场馆ID，原字段：venueId")
	private Long venueId;
	/**
	 * 设备ID
	 */
	@ApiModelProperty(value = "设备ID，原字段：deviceId")
	private Long gateId;
	/**
	 * 鉴权key
	 */
	@ApiModelProperty(value = "鉴权key，原字段：oauthKey")
	private String oauthKey;

	@NotNull(message = "错误类型不允许为空")
	@ApiModelProperty(value = "错误类型")

	private String errorType;
	@ApiModelProperty(value = "不能通过原因")
	private String message;

}
